package cn.itcast.domain;


import org.springframework.stereotype.Component;

@Component
public class Teacher {

    private String tno;

    private String password;

    private String tname;

    private String sex;

    private String remark;

    private String grade;

    public Teacher() {

    }

    public Teacher(String tno, String password, String tname, String sex, String remark, String grade) {
        this.tno = tno;
        this.password = password;
        this.tname = tname;
        this.sex = sex;
        this.remark = remark;
        this.grade = grade;
    }

    public String getTno() {
        return tno;
    }

    public void setTno(String tno) {
        this.tno = tno;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "tno='" + tno + '\'' +
                ", password='" + password + '\'' +
                ", tname='" + tname + '\'' +
                ", sex='" + sex + '\'' +
                ", remark='" + remark + '\'' +
                ", grade='" + grade + '\'' +
                '}';
    }
}
